```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>20个必学的Linux命令 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            background-color: #f9f9f9;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
            color: #222;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6B73FF 0%, #000DFF 50%, #00D4FF 100%);
        }
        .command-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .command-card {
            transition: all 0.3s ease;
        }
        .code-block {
            background-color: #2d2d2d;
            color: #f8f8f2;
            border-radius: 6px;
            position: relative;
        }
        .code-block::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, #FF6B6B, #4ECDC4);
            border-radius: 6px 0 0 6px;
        }
        .highlight {
            position: relative;
        }
        .highlight::after {
            content: "";
            position: absolute;
            bottom: 2px;
            left: 0;
            width: 100%;
            height: 8px;
            background-color: rgba(107, 114, 255, 0.3);
            z-index: -1;
            transform: skewX(-15deg);
        }
        .footer-link:hover {
            color: #4ECDC4 !important;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4 md:px-0">
        <div class="container mx-auto max-w-4xl text-center">
            <div class="flex justify-center mb-6">
                <div class="bg-white bg-opacity-20 px-4 py-2 rounded-full inline-flex items-center">
                    <i class="fab fa-linux mr-2"></i>
                    <span class="text-sm font-medium">Linux 命令行</span>
                </div>
            </div>
            <h1 class="text-4xl md:text-6xl font-bold mb-6 leading-tight">
                掌握<span class="highlight">20个核心命令</span>，提升你的Linux技能
            </h1>
            <p class="text-xl md:text-2xl text-white text-opacity-90 max-w-3xl mx-auto mb-10">
                从基础到进阶，这些命令将帮助你在开发、系统管理和故障排除中游刃有余
            </p>
            <div class="flex justify-center space-x-4">
                <a href="#commands" class="bg-white text-blue-600 hover:bg-opacity-90 px-6 py-3 rounded-full font-medium transition duration-300">
                    <i class="fas fa-terminal mr-2"></i>学习命令
                </a>
                <a href="#mindmap" class="bg-transparent border-2 border-white border-opacity-30 hover:border-opacity-100 text-white px-6 py-3 rounded-full font-medium transition duration-300">
                    <i class="fas fa-project-diagram mr-2"></i>查看关系图
                </a>
            </div>
        </div>
    </section>

    <!-- Introduction -->
    <section class="py-16 px-4 md:px-0 bg-white">
        <div class="container mx-auto max-w-4xl">
            <p class="text-gray-700 text-lg md:text-xl leading-relaxed mb-8">
                在现代软件开发和系统管理中，Linux作为一种高效、稳定的操作系统，其命令行工具在各种场景中都扮演着重要的角色。无论是日常开发、服务器管理还是故障排除，掌握一些常用的Linux命令和其用法，将大幅提升您的效率和技能。
            </p>
            <p class="text-gray-700 text-lg md:text-xl leading-relaxed">
                本文将深入介绍20个常用的Linux命令，包括用法和示例，帮助您在工作中更加得心应手。
            </p>
        </div>
    </section>

    <!-- Commands Section -->
    <section id="commands" class="py-16 px-4 md:px-0 bg-gray-50">
        <div class="container mx-auto max-w-6xl">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-16">
                <span class="border-b-4 border-blue-500 pb-2">20个必备Linux命令</span>
            </h2>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Command 1 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-folder-open text-blue-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">1. <code class="text-blue-600">ls</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">列出当前目录中的文件和子目录。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ ls -l<br>
                                $ ls -a
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-l</code> 详细列表, <code class="bg-gray-100 px-2 py-1 rounded">-a</code> 显示隐藏文件</p>
                    </div>
                </div>

                <!-- Command 2 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-directions text-green-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">2. <code class="text-green-600">cd</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">切换当前工作目录。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ cd /path/to/directory<br>
                                $ cd ..  # 返回上级目录
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">常用: <code class="bg-gray-100 px-2 py-1 rounded">cd ~</code> 返回家目录</p>
                    </div>
                </div>

                <!-- Command 3 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-map-marker-alt text-purple-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">3. <code class="text-purple-600">pwd</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">显示当前所处的工作目录的路径。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ pwd
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">显示绝对路径</p>
                    </div>
                </div>

                <!-- Command 4 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-yellow-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-folder-plus text-yellow-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">4. <code class="text-yellow-600">mkdir</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">创建新的目录。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ mkdir new_directory<br>
                                $ mkdir -p path/to/new/directory
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-p</code> 创建多级目录</p>
                    </div>
                </div>

                <!-- Command 5 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-red-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-trash-alt text-red-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">5. <code class="text-red-600">rm</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">删除文件或目录。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ rm file.txt<br>
                                $ rm -r directory/
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">危险: <code class="bg-gray-100 px-2 py-1 rounded">rm -rf</code> 强制递归删除</p>
                    </div>
                </div>

                <!-- Command 6 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-copy text-indigo-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">6. <code class="text-indigo-600">cp</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">复制文件或目录。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ cp source.txt destination/<br>
                                $ cp -r source_dir/ destination/
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-r</code> 递归复制目录</p>
                    </div>
                </div>

                <!-- Command 7 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-pink-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-cut text-pink-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">7. <code class="text-pink-600">mv</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">移动或重命名文件或目录。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ mv file.txt new_location/<br>
                                $ mv old_name.txt new_name.txt
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">可用于重命名</p>
                    </div>
                </div>

                <!-- Command 8 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-teal-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-file text-teal-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">8. <code class="text-teal-600">touch</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">创建空文件或更新时间戳。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ touch new_file.txt<br>
                                $ touch existing_file.txt
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">更新访问和修改时间</p>
                    </div>
                </div>

                <!-- Command 9 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-orange-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-search text-orange-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">9. <code class="text-orange-600">grep</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">在文本文件中搜索指定的字符串。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ grep "search_string" file.txt<br>
                                $ grep -r "pattern" directory/
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-i</code> 忽略大小写</p>
                    </div>
                </div>

                <!-- Command 10 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-lock text-blue-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">10. <code class="text-blue-600">chmod</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">修改文件或目录的权限。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ chmod +x script.sh<br>
                                $ chmod 755 file.txt
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">数字模式: <code class="bg-gray-100 px-2 py-1 rounded">755</code> (rwxr-xr-x)</p>
                    </div>
                </div>

                <!-- Command 11 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-user-shield text-green-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">11. <code class="text-green-600">chown</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">修改文件或目录的所有者。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ chown user:group file.txt<br>
                                $ chown -R user:group directory/
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-R</code> 递归修改</p>
                    </div>
                </div>

                <!-- Command 12 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-tasks text-purple-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">12. <code class="text-purple-600">ps</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">查看当前正在运行的进程状态。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ ps aux<br>
                                $ ps -ef
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">常用组合: <code class="bg-gray-100 px-2 py-1 rounded">ps aux | grep process_name</code></p>
                    </div>
                </div>

                <!-- Command 13 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-yellow-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-chart-line text-yellow-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">13. <code class="text-yellow-600">top</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">实时显示系统的运行状态和进程信息。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ top<br>
                                $ htop  # 更友好的替代品
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">按<code class="bg-gray-100 px-2 py-1 rounded">q</code>退出</p>
                    </div>
                </div>

                <!-- Command 14 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-red-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-hdd text-red-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">14. <code class="text-red-600">df</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">查看磁盘空间的使用情况。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ df -h<br>
                                $ df -i  # 查看inode使用情况
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-h</code> 人性化显示</p>
                    </div>
                </div>

                <!-- Command 15 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-weight text-indigo-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">15. <code class="text-indigo-600">du</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">查看文件或目录的大小。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ du -sh directory/<br>
                                $ du -h --max-depth=1
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">-s</code> 总计, <code class="bg-gray-100 px-2 py-1 rounded">-h</code> 人性化显示</p>
                    </div>
                </div>

                <!-- Command 16 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-pink-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-download text-pink-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">16. <code class="text-pink-600">wget</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">从网络下载文件。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ wget https://example.com/file.txt<br>
                                $ wget -c URL  # 断点续传
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">支持HTTP/HTTPS/FTP</p>
                    </div>
                </div>

                <!-- Command 17 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-teal-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-exchange-alt text-teal-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">17. <code class="text-teal-600">scp</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">在本地主机和远程主机之间拷贝文件。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ scp file.txt user@remote_host:/path/<br>
                                $ scp -r dir/ user@remote_host:/path/
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">基于SSH的加密传输</p>
                    </div>
                </div>

                <!-- Command 18 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-orange-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-terminal text-orange-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">18. <code class="text-orange-600">ssh</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">通过安全的方式远程登录到主机。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ ssh user@remote_host<br>
                                $ ssh -i key.pem user@remote_host
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">使用密钥更安全</p>
                    </div>
                </div>

                <!-- Command 19 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-lg mr-4">
                                <i class="fas fa-file-archive text-blue-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">19. <code class="text-blue-600">tar</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">压缩和解压文件。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ tar -czvf archive.tar.gz directory/<br>
                                $ tar -xzvf archive.tar.gz
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">选项: <code class="bg-gray-100 px-2 py-1 rounded">c</code>创建, <code class="bg-gray-100 px-2 py-1 rounded">x</code>解压</p>
                    </div>
                </div>

                <!-- Command 20 -->
                <div class="command-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-lg mr-4">
                                <i class="far fa-clock text-green-600 text-xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">20. <code class="text-green-600">date</code></h3>
                        </div>
                        <p class="text-gray-600 mb-4">显示当前系统的日期和时间。</p>
                        <div class="code-block p-4 mb-4">
                            <code class="block overflow-x-auto">
                                $ date<br>
                                $ date "+%Y-%m-%d %H:%M:%S"
                            </code>
                        </div>
                        <p class="text-sm text-gray-500">自定义格式输出</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Mindmap Section -->
    <section id="mindmap" class="py-16 px-4 md:px-0 bg-white">
        <div class="container mx-auto max-w-6xl">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">
                <span class="border-b-4 border-blue-500 pb-2">Linux命令关系图</span>
            </h2>
            
            <div class="bg-gray-50 p-6 rounded-xl shadow-sm">
                <div class="mermaid">
                    mindmap
                      root((Linux命令))
                        文件操作
                          ls
                          cd
                          pwd
                          mkdir
                          rm
                          cp
                          mv
                          touch
                        文本处理
                          grep
                        权限管理
                          chmod
                          chown
                        系统监控
                          ps
                          top
                        磁盘管理
                          df
                          du
                        网络操作
                          wget
                          scp
                          ssh
                        归档压缩
                          tar
                        其他实用工具
                          date
                </div>
            </div>
        </div>
    </section>

    <!-- Conclusion -->
    <section class="py-16 px-4 md:px-0 bg-gray-50">
        <div class="container mx-auto max-w-4xl">
            <div class="bg-white p-8 md:p-10 rounded-xl shadow-sm">
                <h2 class="text-3xl font-bold mb-6 text-center">掌握Linux命令的艺术</h2>
                
                <p class="text-gray-700 text-lg mb-6">
                    通过掌握这些常用的Linux命令，您将能够在开发、系统管理等各个领域更加游刃有余地完成任务。每个命令都有许多选项和用法，不断地实践和学习将帮助您更深入地理解和掌握这些强大的工具。随着经验的积累，您还可以逐渐探索更多的命令，为自己的技能和能力增添更多的优势。
                </p>
                
                <p class="text-gray-700 text-lg">
                    总之，熟练地使用Linux命令行是一项必不可少的技能。通过本文介绍的20个常用命令，您已经迈出了坚实的第一步。希望您能够在实际工作中不断运用和完善这些知识，为自己的职业生涯赢得更多机会和挑战。
                </p>
                
                <div class="mt-10 text-center">
                    <a href="#" class="inline-flex items-center text-blue-600 hover:text-blue-800 font-medium">
                        <i class="fas fa-arrow-up mr-2"></i> 返回顶部
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-10">
        <div class="container mx-auto px-4 md:px-0">
            <div class="max-w-4xl mx-auto text-center">
                <div class="flex flex-col md:flex-row justify-center items-center space-y-4 md:space-y-0 md:space-x-8">
                    <div>
                        <h3 class="text-xl font-bold">技术小馆</h3>
                    </div>
                    <div>
                        <a href="http://www.yuque.com/jtostring" class="footer-link text-gray-300 hover:text-white transition duration-300">
                            <i class="fas fa-globe mr-2"></i> http://www.yuque.com/jtostring
                        </a>
                    </div>
                </div>
                <div class="mt-8 text-gray-400 text-sm">
                    © 2023 技术小馆. 保留所有权利.
                </div>
            </div>
        </div>
    </footer>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            },
            themeCSS: `
                .node rect {
                    fill: #f8fafc;
                    stroke: #cbd5e1;
                    stroke-width: 2px;
                }
                .node text {
                    font-family: 'Noto Sans SC', sans-serif;
                    fill: #334155;
                }
                .cluster rect {
                    fill: #e2e8f0;
                    stroke: #94a3b8;
                    stroke-width: 1px;
                }
                .cluster text {
                    fill: #475569;
                }
                .root {
                    fill: #3b82f6 !important;
                    stroke: #2563eb !important;
                }
                .root text {
                    fill: white !important;
                }
            `
        });
        
        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```